package com.bdqn.mapper;

import com.bdqn.pojo.RoomType;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoomTypeMapper {


    /**
     * 根据条件获得总记录数
     */
    public int record();// 总记录数

    /**
     * 分页查找系统用
     */
    public List<RoomType> findList(Map<String, Object> queryMap);

    /**
     * 查询房间
     */
    public RoomType selectRoot(Long id);

    /**
     * 查询房间类型
     */
    public List<RoomType>list();

    RoomType getroom(@Param("id")Long id);


    List<RoomType> getList(Map<String,Object> queryMap);

    List<RoomType> getTotal(Map<String,Object> queryMap);

    int add(RoomType roomType);

    int delete(Long id);

    int edit(RoomType roomType);

    RoomType find(Long id);

    public List<RoomType> findAll();

    public int updateNum(RoomType roomType);



}
